import { BasicPageParams, BasicFetchResult } from '@/api/model/baseModel';

export interface SiteInfo {
  id: number;
  name: string;
  domain: string;
  template_id: number;
  server_id: number;
  status: number;
  views: number;
}

export interface SiteParams extends BasicPageParams {
  name?: string;
  domain?: string;
  template_id: number;
  server_id?: number;
  status?: number;
}

export interface SiteListGetResultModel extends BasicFetchResult<SiteInfo> {}

// Request Types
export interface SiteAddReq {
  name: string;
  domain: string;
  server_id: number;
  template_id: number;
  views: number;
  status: number;
}

export interface SiteEditReq {
  id: number;
  name: string;
  domain: string;
  server_id: number;
  template_id: number;
  views: number;
  status: number;
}

export interface SiteDelReq {
  id: number;
}
